updating oE create_file
create_file
include filesys.e namespace filesys public function create_file(sequence name)
Create a new file.
Parameters:
- name : a sequence, the name of the new file to create
Returns:
An integer, 0 on failure, 1 on success.
Comments:
- The created file will be empty, that is it has a length of zero.
- The created file will not be open when this returns.
Example 1:
if not create_file("the_new_file") then crash("Filesystem problem - could not create the new file") end if
See Also:
Not Categorized, Please Help
|